import App from './App'
import fyDropdowncolumn from './components/fy-dropdown-item/fy-dropdown-column.vue'
Vue.component('fy-dropdown-column',fyDropdowncolumn)
import fyDropdown from './components/fy-dropdown/fy-dropdown.vue'
Vue.component('fy-dropdown',fyDropdown)
import fyDropdownItem from './components/fy-dropdown-item/fy-dropdown-item.vue'
Vue.component('fy-dropdown-item',fyDropdownItem)


// #ifndef VUE3
import Vue from 'vue'
import store from './store'

import uView from '@/uni_modules/uview-ui'

Vue.use(uView)
import './uni.promisify.adaptor'
Vue.config.productionTip = false

Vue.prototype.$store = store

import tabbar from './components/tabbar/tabbar.vue'
Vue.component('tabbar', tabbar)

App.mpType = 'app'
const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

// 封装消息框的方法，挂载到uni里
uni.$showMsg=function(title='数据加载失败！',duration=1500){
	uni.showToast({
		// 有默认数据
		title,
		duration,
		icon:'none',
		mask:true
	})
}